﻿<%@ Page Language="C#" MasterPageFile="~/Admin/SanPham/MasterPageSanPham.master" AutoEventWireup="true" CodeFile="DanhSachSanPham.aspx.cs" Inherits="Admin_SanPham_DanhSachSanPham" Title="Danh sách sản phẩm" %>

<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>

<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" Runat="Server">
<div style="padding:12px 12px 12px 12px;">
 <div>
       
        <div class="title">
            Danh sách Sản Phẩm
        </div>
        <div style="width:100%;">
            <div style="display:table-cell; width:78%;float:left;">
                Tên sản phẩm: 
                <asp:TextBox ID="txt_TenSP" runat="server"></asp:TextBox>
                Danh mục:
                <asp:DropDownList ID="ddl_DoanhMuc" runat="server">
                </asp:DropDownList>
                Doanh Nghiệp:
                <asp:DropDownList ID="ddl_DoanhNghiep" runat="server">
                </asp:DropDownList>
                Tình trạng:
                <asp:DropDownList ID="ddl_TinhTrang" runat="server">
                </asp:DropDownList>
                <asp:Button ID="btn_Search" runat="server" Text="Tìm kiếm" OnClick="btn_Search_Click" />
                
                
            
            </div>
            <div class="addnewrow" style="display:table-cell; width:20%;float:right;">
                    <a href="ThemSanPham.aspx">Thêm mới Sản Phẩm</a> | 
                <asp:LinkButton ID="lbt_Xoa" runat="server" OnClick="lbt_Xoa_Click">Xóa</asp:LinkButton>
                    
            </div>        
        </div>
        <div>
        <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
            <HeaderTemplate>
                <table cellspacing="1" cellpadding="3" width="100%" bgcolor="#cccccc" border="0">
                <thead>
                    <tr class="listtableheader">
                        <th>Mã sản phẩm</th>
                        <th>Tên sản phẩm</th>
                        <th>Hình Ảnh</th>
                        <th>Danh Mục</th>
                        <th>Doanh Nghiệp</th>
                        <th>Giá Gốc</th>
                        <th>Giá Deal</th>
                        <th>Ngày Bắt Đầu</th>
                        <th>Ngày Hết Hạn</th>
                        <th>Số Lượng Đã Bán</th>
                        <th>Số Lượng Deal</th>
                        <th>Chiết Khấu</th>
                        <th>Tình Trạng</th>
                        <th>Nhân Viên</th>
                        <th>Sửa</th>
                        <th>
                            <input id="cb_All" type="checkbox" onclick="CheckAll(1);" />
                            <a href="javascript:CheckAll(2)">Chọn hết</a>
                        </th>
                    </tr>
                </thead>
                <tbody>
            </HeaderTemplate>
            <ItemTemplate>
              <tr>
                <td><%#Eval("MaSP") %></td>
                <td><asp:HyperLink ID="hyp_TenSP" runat="server"></asp:HyperLink></td>
                 <td>
                    <asp:Image ID="img_HinhAnh" runat="server" />
                </td>
                <td><asp:Literal ID="lit_DanhMuc" runat="server" /></td>
                <td>
                    <asp:Literal ID="lit_DoanhNghiep" runat="server" />
                </td>
           
                <td><%#Eval("GiaGoc") %></td>
                 <td><%#Eval("GiaBan") %></td>
                <td><%#Eval("NgayBatDau") %></td>
                <td><%#Eval("NgayHetHan") %></td>
                <td><%#Eval("SoLuongBan") %></td>
                <td><%#Eval("SoLuongToiDa") %></td>
                <td><%#Eval("ChietKhau") %></td>   
                 <td>
                    <asp:Literal ID="lit_TinhTrang" runat="server" />
                </td>
                <td>
                    <asp:Literal ID="lit_NhanVien" runat="server" />
                </td>   
                
                <td><asp:HyperLink ID="hpl_Edit" Text="Edit" runat="server" /></td>
                <td>
                    <asp:CheckBox ID="cb_Xoa" runat="server" />
                    <asp:HiddenField ID="hf_id" Value='<%#Eval("MaSP") %>' runat="server" />
                </td>
              </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody>
            </table>   
            </FooterTemplate>
        </asp:Repeater>  
        </div>
        <div style="width:100%;"> 
            <div style="float:left;">               

            </div>
            <cc1:PagerV2_8 ID="pager" runat="server" OnCommand="pager_Command" />
              
        </div>
 </div>
 </div>
</asp:Content>

